Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Respect default category sort order when navigating within app #23270

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

davidtaylorhq
Copy link
Member

When navigating around, we make ajax requests with a parameter like ?filter=latest. This results in the TopicQuery being set up with filter: "latest" as a string. The logic introduced in fd9a5bc checks for equality with :latest and :unseen symbols, which didn't work correctly in this situation

This commit makes the logic detect both strings and symbols, and adds a spec for the behaviour.

When navigating around, we make ajax requests with a parameter like `?filter=latest`. This results in the TopicQuery being set up with `filter: "latest"` as a string. The logic introduced in fd9a5bc checks for equality with `:latest` and `:unseen` symbols, which didn't work correctly in this situation

This commit makes the logic detect both strings and symbols, and adds a spec for the behaviour.
@davidtaylorhq davidtaylorhq merged commit 92bc61b into main Aug 25, 2023
13 checks passed
@davidtaylorhq davidtaylorhq deleted the default-sort-order branch August 25, 2023 15:49
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/category-links-should-honor-category-order-settings/274333/5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants